package cn.bgs.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 公式公告表(社区活动表)
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Announcement对象", description="公式公告表(社区活动表)")
public class Announcement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公式公告表id")
    private Integer announcementId;

    @ApiModelProperty(value = "小区id")
    private Integer communityId;

    @ApiModelProperty(value = "主题")
    private String theTheme;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "作者")
    private String theAuthor;

    @ApiModelProperty(value = "公告开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "公告结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "类型（一般、紧急、非常紧急）")
    private String type;

    @ApiModelProperty(value = "事件类型")
    private String eventType;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss ")//DateTimeFormat 是入参格式化；
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;



}
